<?php
namespace app\api\controller;


use app\BaseController;
use think\Request;
use app\api\model\AdminUser;
use think\facade\Cache;
use thans\jwt\facade\JWTAuth;
class Index extends BaseController
{
    public function index()
    {
//        $user = session('User');

//        header('Access-Control-Allow-Origin: *');
//        header("Access-Control-Request-Headers: Origin, X-Requested-With, content-Type, Accept, Authorization");
            dump(12313);exit;
//        dump(renderError('您没有此权限'));exit;
        return renderSuccess('测试');

    }
    /*
     * 获取用户信息
     */
    public function getUser(Request $request){
        $user_info = AdminUser::userdetail($request->token_user_name);
        return renderSuccess('',$user_info);
    }


}
